'''
@Owner DERFDY.
@Author.
@Contibutor Deepseek.
@DateCreated 2025/9/24.
'''

# I don't understand what the task asks me to do at all
# So I turn to Deepseek.
# Let us praise, thank you DEEPSEEK!

# The core function is 'eval', which is able to simulate the operation of specific syntax.

# 获取用户输入
x = float(input("请输入第一个数 x: "))
y = float(input("请输入第二个数 y: "))
expression = input("请输入算术表达式（使用 x 和 y, 例如 x+y, x*y 等）: ")

# 计算表达式结果
try:
    result = eval(expression)
    print(f"表达式 '{expression}' 的结果是: {result}")
except:
    print("错误：无效的表达式！")